using System.Collections.Generic;

namespace Intyme.Common.DataModel {
    public class ScheduledMachineClass {
        public int MachineID = -2;
        public WorkstationType Type = WorkstationType.None;

        public List<PartialOperationOnScheduleClass> PartialOperationsOnSchedule;

        public ScheduledMachineClass() {
            if (PartialOperationsOnSchedule == null) {
                PartialOperationsOnSchedule = new List<PartialOperationOnScheduleClass>();
            }
        }

        ~ScheduledMachineClass() {
            if (PartialOperationsOnSchedule != null) {
                PartialOperationsOnSchedule.Clear();
                PartialOperationsOnSchedule = null;
            }
        }
    }
}